<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<!-- saved from url=(0038)https://segmentfault.com/user/settings -->
<html lang="zh-CN">
    
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        
        <title>
            SegmentFault
        </title>
        
        <link rel="stylesheet" href="/p201604/seg/seg/Public/css/global.css">
        <link rel="stylesheet" href="/p201604/seg/seg/Public/css/qa.css">
        <link rel="stylesheet" href="/p201604/seg/seg/Public/css/responsive.css">
        <link rel="stylesheet" href="/p201604/seg/seg/Public/css/user.css">

        <!--[if lt IE 9]>
            <link rel="stylesheet" href="https://sf-static.b0.upaiyun.com/v-57bfebd9/global/css/ie.css"
            />
            <script src="https://sf-static.b0.upaiyun.com/v-57bfebd9/global/script/html5shiv.js">
            </script>
            <script src="https://sf-static.b0.upaiyun.com/v-57bfebd9/global/script/respond.js">
            </script>
        <![endif]-->
        <script type="text/javascript" src='/p201604/seg/seg/Public/js/jquery.min.js'></script>
    </head>
    
    <body data-mod="user" class="user-settings ">
        <!--[if lt IE 9]>
            <div class="alert alert-danger topframe" role="alert">
                你的浏览器实在
                <strong>
                    太太太太太太旧了
                </strong>
                ，放学别走，升级完浏览器再说
                <a target="_blank" class="alert-link" href="http://browsehappy.com">
                    立即升级
                </a>
            </div>
        <![endif]-->
        <img id="icon4weChat" style="height: 0;width: 0;" data-src="https://sf-static.b0.upaiyun.com/v-57bfebd9/global/img/touch-icon-512.png">
        <img id="icon4weChat" data-src="https://sf-static.b0.upaiyun.com/v-57bfebd9/global/img/touch-icon-512.png">
        <div class="global-nav sf-header">
            <nav class="container nav">
                <div class="hidden-sm hidden-lg hidden-md">
                    <div class="sf-header__logo sf-header__logo--response">
                        <h1>
                            <a>
                            </a>
                        </h1>
                    </div>
                    <div class="dropdown m-menu">
                        <a href="javascript:void(0);" id="dLabel" class="visible-xs-block m-toptools"
                        data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
                            <span class="glyphicon glyphicon-align-justify">
                            </span>
                            <span class="mobile-menu__unreadpoint">
                            </span>
                        </a>
                        <ul class="dropdown-menu" role="menu" aria-labelledby="dLabel">
                            <li class="mobile-menu__item">
                                <a href="https://segmentfault.com/questions/newest">
                                    问答
                                </a>
                            </li>
                            <li class="mobile-menu__item">
                                <a href="https://segmentfault.com/blogs">
                                    文章
                                </a>
                            </li>
                            <li class="mobile-menu__item">
                                <a href="https://segmentfault.com/user/note">
                                    笔记
                                </a>
                            </li>
                            <li class="mobile-menu__item">
                                <a href="https://segmentfault.com/jobs">
                                    职位
                                </a>
                            </li>
                            <li class="mobile-menu__item">
                                <a href="https://segmentfault.com/events">
                                    活动
                                </a>
                            </li>
                            <li class="mobile-menu__item">
                                <a href="https://segmentfault.com/tags">
                                    标签
                                </a>
                            </li>
                            <li class="mobile-menu__item">
                                <a href="https://segmentfault.com/users">
                                    榜单
                                </a>
                            </li>
                            <li class="mobile-menu__item">
                                <a href="https://segmentfault.com/sites">
                                    子站
                                </a>
                            </li>
                            <li role="presentation" class="divider">
                            </li>
                            <li class="mobile-menu__item">
                                <a href="https://segmentfault.com/user/notifications">
                                    消息
                                    <span class="pull-right badge mt4" id="m-messageCount">
                                    </span>
                                </a>
                            </li>
                            <li role="presentation" class="divider">
                            </li>
                            <li class="mobile-menu__item">
                                <a href="<?php echo U('index/login/loginout');?>">
                                    退出
                                </a>
                            </li>
                        </ul>
                    </div>
                    <a href="https://segmentfault.com/ask" class="visible-xs-block pull-right m-ask m-toptools">
                        <span class="glyphicon glyphicon-pencil">
                        </span>
                    </a>
                </div>
                <div class="row hidden-xs">
                    <div class="col-sm-9 col-md-7 col-lg-6">
                        <div class="sf-header__logo">
                            <h1>
                                <a href="/p201604/seg/seg">
                                    SegmentFault
                                </a>
                            </h1>
                        </div>
                        <ul class="menu list-inline pull-left hidden-xs">
                            <li class="menu__item">
                                <a href="https://segmentfault.com/questions">
                                    问答
                                </a>
                            </li>
                            <li class="menu__item">
                                <a href="https://segmentfault.com/blogs">
                                    文章
                                </a>
                            </li>
                            <li class="menu__item">
                                <a href="https://segmentfault.com/user/note">
                                    笔记
                                </a>
                            </li>
                            <li class="menu__item">
                                <a href="https://segmentfault.com/jobs">
                                    职位
                                </a>
                            </li>
                            <li class="menu__item">
                                <a href="https://segmentfault.com/events">
                                    活动
                                </a>
                            </li>
                        </ul>
                    </div>
                    <div class="col-sm-3 col-md-5 col-lg-6 text-right">
                        <form action="<?php echo U('home/search/index');?>" class="header-search  hidden-sm hidden-xs mr20">
                            <button class="btn btn-link">
                                <span class="sr-only">
                                    搜索
                                </span>
                                <span class="glyphicon glyphicon-search">
                                </span>
                            </button>
                            <input id="searchBox" name="keywords" type="text" placeholder="输入关键字搜索" class="form-control"
                            value="">
                        </form>

                        <?php if (isset($_SESSION['username'])) { ?>
                            <ul class="opts list-inline hidden-xs">
                                <li class="opts__item dropdown hoverDropdown write-btns">
                                    <a class="dropdownBtn" data-toggle="dropdown" href="https://segmentfault.com/ask">
                                        撰写
                                        <span class="caret">
                                        </span>
                                    </a>
                                    <ul class="dropdown-menu dropdown-menu-right ">
                                        <li>
                                            <a href="<?php echo U('home/question/howtoask');?>">
                                                提问题
                                            </a>
                                        </li>
                                        <li>
                                            <a href="https://segmentfault.com/write">
                                                写文章
                                            </a>
                                        </li>
                                        <li>
                                            <a href="https://segmentfault.com/record">
                                                记笔记
                                            </a>
                                        </li>
                                        <li class="divider">
                                        </li>
                                        <li>
                                            <a href="https://segmentfault.com/user/draft">
                                                草稿箱
                                            </a>
                                        </li>
                                    </ul>
                                </li>
                                <li class="opts__item message has-unread ">
                                    <a id="dLabel" class="dropdown-toggle-message" href="https://segmentfault.com/user/notifications">
                                        <span class="sr-only">
                                            消息
                                        </span>
                                        <span id="messageCount" class="fa fa-bell-o">
                                        </span>
                                    </a>
                                    <div class="opts__item--message hide">
                                        <div class="panel panel-default">
                                            <div class="panel-heading">
                                                <ul class="nav nav-tabs nav-tabs-message">
                                                    <li role="presentation" class="active">
                                                        <a href="https://segmentfault.com/user/settings#messageGeneral" id="home-tab"
                                                        role="tab" data-toggle="tab" aria-controls="home" aria-expanded="true">
                                                            <i class="fa fa-bullhorn">
                                                            </i>
                                                            <span class="notice-dot hide notice-dot-general">
                                                            </span>
                                                        </a>
                                                    </li>
                                                    <li role="presentation" class="">
                                                        <a href="https://segmentfault.com/user/settings#messageRanked" id="home-tab"
                                                        role="tab" data-toggle="tab" aria-controls="home" aria-expanded="true">
                                                            <i class="fa fa-thumbs-o-up">
                                                            </i>
                                                            <span class="notice-dot hide notice-dot-ranked">
                                                            </span>
                                                        </a>
                                                    </li>
                                                    <li role="presentation" class="">
                                                        <a href="https://segmentfault.com/user/settings#messageFollowed" id="home-tab"
                                                        role="tab" data-toggle="tab" aria-controls="home" aria-expanded="true">
                                                            <i class="fa fa-user-plus">
                                                            </i>
                                                            <span class="notice-dot hide notice-dot-followed">
                                                            </span>
                                                        </a>
                                                    </li>
                                                    <li role="presentation" class="">
                                                        <a href="https://segmentfault.com/user/settings#messageInbox" id="home-tab"
                                                        role="tab" data-toggle="tab" aria-controls="home" aria-expanded="true">
                                                            <i class="fa fa-commenting">
                                                            </i>
                                                            <span class="notice-dot hide notice-dot-inbox">
                                                            </span>
                                                        </a>
                                                    </li>
                                                </ul>
                                            </div>
                                            <div class="panel-body">
                                                <div class="tab-content">
                                                    <div role="tabpanel" class="tab-pane active" id="messageGeneral">
                                                    </div>
                                                    <div role="tabpanel" class="tab-pane" id="messageRanked">
                                                    </div>
                                                    <div role="tabpanel" class="tab-pane" id="messageFollowed">
                                                    </div>
                                                    <div role="tabpanel" class="tab-pane" id="messageInbox">
                                                    </div>
                                                    <script type="text/template" id="messageGeneralTpl">
                                                        < ul class = "mCustomScrollbar-message"data - proto = "general"data - mcs - theme = "minimal-dark" > <%_.each(general,
                                                        function(d) { % ><li class = "<%= d.viewed>0 ?'':'bg-warning'%>" > <%=d.sentence % >&nbsp; < a href = "<%= d.url %>" > <%=d.excerpt % ></a></li > <%
                                                        }) % ></ul>/
                                                    </script>
                                                    <script type="text/template" id="item--general">
                                                        < %_.each(general,
                                                        function(d) { % ><li class = "<%= d.viewed>0 ?'':'bg-warning'%>" > <%=d.sentence % >&nbsp; < a href = "<%= d.url %>" > <%=d.excerpt % ></a></li > <%
                                                        }) % >
                                                    </script>
                                                    <script type="text/template" id="messageRankedTpl">
                                                        < ul class = "mCustomScrollbar-message"data - proto = "ranked"data - mcs - theme = "minimal-dark" > <%_.each(ranked,
                                                        function(d) { % ><li class = "<%= d.viewed>0 ?'':'bg-warning'%>" > <span class = "badge
                                                        <% if(d.voted && d.voted.rank!=0){ %><%= d.voted.rank > 0 ? 'green':'red' %><% } else { %> transparent <% } %>" > <%
                                                            if (d.voted) { % ><%=d.voted.rank > 0 ? '+' + d.voted.rank: d.voted.rank % ><%
                                                            } % ></span><div class="rank-desc"><%= d.sentence %>&nbsp;<a href="<%= d.url %>"><%=
                                        d.excerpt %></a > </div></li > <%
                                                        }) % ></ul>/
                                                    </script>
                                                    <script type="text/template" id="item--ranked">
                                                        < %_.each(ranked,
                                                        function(d) { % ><li class = "<%= d.viewed>0 ?'':'bg-warning'%>" > <span class = "badge
                                                        <% if(d.voted && d.voted.rank!=0){ %><%= d.voted.rank > 0 ? 'green':'red' %><% } else { %> transparent <% } %>" > <%
                                                            if (d.voted) { % ><%=d.voted.rank > 0 ? '+' + d.voted.rank: d.voted.rank % ><%
                                                            } % ></span><div class="rank-desc"><%= d.sentence %>&nbsp;<a href="<%= d.url %>"><%=
                                        d.excerpt %></a > </div></li > <%
                                                        }) % >
                                                    </script>
                                                    <script type="text/template" id="messageFollowedTpl">
                                                        < p class = "follow-tips" > 他们最近关注了你 < /p><ul class="mCustomScrollbar-message" data-proto="followed"  data-mcs-theme="minimal-dark"><% _.each(followed,function(d){ %><li class="<%= d.viewed>0 ?'':'bg-warning'%>"><img class="follower__img avatar-32"
                                     src="<%= d.triggerUser[0] ? d.triggerUser[0].avatarUrl : '' %>"><div class="follower__info"><% if(d.triggerUser[0] ? d.triggerUser[0].isFollowed : ''){ %><button data-id="<%= d.triggerUser[0] ? d.triggerUser[0].id : '' %>"
                                            class="btn btn-default btn-xs message__btn--unfollow pull-right active">
                                        已关注
                                    </button > <%
                                                    } else { % ><button data - id = "<%= d.triggerUser[0] ? d.triggerUser[0].id : '' %>"class = "btn btn-default btn-xs message__btn--follow pull-right" > 关注 < /button><% } %><a href="<%= d.triggerUser[0] ? d.triggerUser[0].url : '' %>"><%=d.triggerUser[0] ? d.triggerUser[0].name : ''%></a > <br > <span > <%=d.triggerUser[0] ? d.triggerUser[0].rank: '' % >声望 < /span></div > </li><% }) %></ul > 
                                                    </script>
                                                    <script type="text/template" id="item--followed">
                                                        < %_.each(followed,
                                                        function(d) { % ><li class = "<%= d.viewed>0 ?'':'bg-warning'%>" > <img class = "follower__img avatar-32"src = "<%= d.triggerUser[0] ? d.triggerUser[0].avatarUrl : '' %>" > <div class = "follower__info" > <%
                                                            if (d.triggerUser[0] && d.triggerUser[0].isFollowed) { % ><button data - id = "<%= d.triggerUser[0] ? d.triggerUser[0].id : '' %>"class = "btn btn-default btn-xs message__btn--unfollow pull-right active" > 已关注 < /button><% }else{ %><button data-id="<%= d.triggerUser[0] ? d.triggerUser[0].id : '' %>"
                                            class="btn btn-default btn-xs message__btn--follow pull-right">
                                        关注
                                    </button > <%
                                                            } % ><a href = "<%= d.triggerUser[0] ? d.triggerUser[0].url : '' %>" > <%=d.triggerUser[0].name % ></a><br><span><%= d.triggerUser[0].rank %> 声望</span > </div></li > <%
                                                        }) % >
                                                    </script>
                                                    <script type="text/template" id="messageInboxTpl">
                                                        < p class = "follow-tips" > 他们给你发了私信 < /p><ul class="mCustomScrollbar-message" data-proto="inbox" data-mcs-theme="minimal-dark"><% _.each(inboxes,function(d){ %><li class="<%= d.viewed>0 ?'':'bg-warning'%>" data-click="<%= d.url %>"><img class="follower__img avatar-32"
                                         src="<%= d.targetUser.avatarUrl %>"><div class="follower__info"><a href="<%= d.url %>"><%= d.targetUser.name
                                            %></a > <br > <span class = "ellipsis inline-block"style = "width: 245px;" > <%=d.lastMessage.content.content % ></span></div > </li><% }) %><% if(inboxes.length ==0){ %><p class="text-center">没有人给你发私信</p > <%
                                                    } % ></ul>/
                                                    </script>
                                                    <script type="text/template" id="item--inboxes">
                                                        < %_.each(inboxes,
                                                        function(d) { % ><li class = "<%= d.viewed>0 ?'':'bg-warning'%>"data - click = "<%= d.url %>" > <img class = "follower__img avatar-32"src = "<%= d.targetUser.avatarUrl %>" > <div class = "follower__info" > <a href = "<%= d.targetUser.url %>" > <%=d.targetUser.name % ></a><br><span class="ellipsis inline-block" style="width: 245px;"><%= d.content %></span > </div></li > <%
                                                        }) % >
                                                    </script>
                                                </div>
                                                <p class="opts__item--message-loading follow-tips">
                                                    loading
                                                </p>
                                            </div>
                                            <div class="panel-footer">
                                                <div class="row">
                                                    <div class="col-sm-6">
                                                        <a href="javascript:;" class="message-ingore-all hide">
                                                            <span class="glyphicon glyphicon-ok-sign">
                                                            </span>
                                                            全部标记为已读
                                                        </a>
                                                    </div>
                                                    <div class="col-sm-6">
                                                        <a class="opts__item--message-view-all" href="https://segmentfault.com/user/notifications">
                                                            查看全部 »
                                                        </a>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </li>
                                <li class="opts__item user dropdown hoverDropdown">
                                    <img class="dropdownBtn user-avatar" id='user-avatar_face' data-toggle="dropdown" src="/p201604/seg/seg<?php echo $_SESSION['face'] ?> ">
                                    <ul class="dropdown-menu dropdown-menu-right" style="height:-5px;" >
                                        <li>
                                            <a href="<?php echo U('home/user/show');?>">
                                                我的主页
                                            </a>
                                        </li>
                                        <li>
                                            <a href="<?php echo U('home/user/about');?>">
                                                我的档案
                                            </a>
                                        </li>
                                        <li>
                                            <a href="<?php echo U('home/user/settings');?>">
                                                账号设置
                                            </a>
                                        </li>
                                        <li>
                                            <a href="<?php echo U('home/login/loginout');?>">
                                                退出
                                            </a>
                                        </li>
                                        <li class="divider">
                                        </li>
                                        <li>
                                            <a href="https://board.segmentfault.com/">
                                                建议反馈
                                            </a>
                                        </li>
                                        <li>
                                            <a class="js__action--complain" href="javascript:void(0);">
                                                用户申诉
                                            </a>
                                        </li>
                                        <script type="text/template" id="js__action--complain-tpl">
                                            < form class = "complain__form"method = "post"action = "/api/appeals/add" > <div class = "form-group" > <label > 理由 < /label><textarea name="description" class="form-control"
                                                                  rows="3"></textarea > </div></form > 
                                        </script>
                                    </ul>
                                </li>
                            </ul>                           
                        <?php }else{ ?>
                            <ul class="opts list-inline hidden-xs">
                                <li class="opts__item message has-unread">
                                    <a target="_blank" href="/tour">
                                        <span class="sr-only">
                                            消息
                                        </span>
                                        <span id="messageCount" class="fa fa-hand-peace-o">
                                        </span>
                                    </a>
                                </li>
                                <li class="opts__item">
                                    <a href="<?php echo U('home/login/login');?>" class="SFLogin em ml10">
                                        注册 · 登录
                                    </a>
                                </li>
                            </ul>
                        <?php } ?>

                    </div>
                </div>
            </nav>
        </div>
        <div class="global-navTags">
            <div class="container">
                <nav class=" nav">
                    <ul class="nav__list">
                        <li class="nav__item">
                            <a href="https://segmentfault.com/">
                                <i class="fa fa-home">
                                </i>
                                home
                            </a>
                        </li>
                        <li class="nav__item">
                            <a href="https://segmentfault.com/timeline">
                                <i class="fa fa-list-alt">
                                </i>
                                feed
                            </a>
                        </li>
                        <li class="nav__item nav__item--split">
                            <a>
                                <span class="split">
                                </span>
                            </a>
                        </li>

                        <?php foreach ($categorys as $row) { ?>
                        <li class="nav__item tag-nav__item"  >
                            <a class=" <?php if($_SESSION==$row['id']) {echo 'active';} ?>" href="<?php echo U('home/catetory/index',array('cid'=>$row['id']));?>"
                            >
                                <?php echo $row['cname'] ?>
                            </a>
                        </li>
                        <?php  } ?>
                        
                    </ul>
                    <div class="tag-mgr__box hide">
                        <input class="tag-mgr__query" type="text" placeholder="搜索关注的标签" data-tags="null">
                        <div class="mCustomScrollbar _mCS_1 mCS-autoHide mCS_no_scrollbar" data-mcs-theme="minimal-dark"
                        style="position: relative; overflow: visible;">
                            <div id="mCSB_1" class="mCustomScrollBox mCS-minimal-dark mCSB_vertical mCSB_outside"
                            style="max-height: 0px;" tabindex="0">
                                <div id="mCSB_1_container" class="mCSB_container mCS_y_hidden mCS_no_scrollbar_y"
                                style="position:relative; top:0; left:0;" dir="ltr">
                                    <ul class="tag-mgr__list">
                                    </ul>
                                </div>
                            </div>
                            <div id="mCSB_1_scrollbar_vertical" class="mCSB_scrollTools mCSB_1_scrollbar mCS-minimal-dark mCSB_scrollTools_vertical"
                            style="display: none;">
                                <div class="mCSB_draggerContainer">
                                    <div id="mCSB_1_dragger_vertical" class="mCSB_dragger" style="position: absolute; min-height: 50px; top: 0px;"
                                    oncontextmenu="return false;">
                                        <div class="mCSB_dragger_bar " style="line-height: 50px;">
                                        </div>
                                    </div>
                                    <div class="mCSB_draggerRail">
                                    </div>
                                </div>
                            </div>
                        </div>
                        <a href="https://segmentfault.com/tags" class="btn btn-primary btn-sm tag-mgr__btn">
                            标签管理
                        </a>
                    </div>
                </nav>
            </div>
        </div>



<div class="wrap">
    <div class="container tag__container">
        <div class="row">
            <div class="col-xs-12 col-md-9 main">
                <section class="tag-info tag__info" style="    background: #f6f6f6;
    box-shadow: 0 1px 2px 0 rgba(0,0,0,.24);
    padding: 15px;
    margin-bottom: 20px; margin-top:20px;">
                    <div>
                        <img class="pull-left avatar-square-24 tag__info--thumbnai" src="/p201604/seg/seg<?php echo $categoryinfo[0]['clogo'] ?>">
                        <span class="h4 tag__info--title">
                            <?php echo $categoryinfo[0][ 'cname'] ?>
                        </span>
                        <div class="tag__info--follow">
                            <button type="button" class="btn btn-default btn-xs tagfollow" 
                            style="padding: 1px 5px;
    font-size: 12px;
    line-height: 1.5;
    border-radius: 3px" data-id="1040000000089387">
                                关注
                            </button>
                        </div>
                    </div>
                    <p class="tag__info--desc" >
                        <?php echo $categoryinfo[0][ 'info'] ?>
                            <a href="https://segmentfault.com/t/php/info">
                                [ 百科 ]
                            </a>
                    </p>
                </section>
                <ul class="nav nav-tabs nav-tabs-zen mb20 tag__nav">
                    <li class="active">
                        <a href="https://segmentfault.com/t/php">
                            <i class="fa fa-question-circle">
                            </i>
                            问答
                        </a>
                    </li>
                    <li>
                        <a href="https://segmentfault.com/t/php/blogs">
                            <i class="fa fa-file-text">
                            </i>
                            文章
                        </a>
                    </li>
                    <li>
                        <a href="https://segmentfault.com/t/php/jobs">
                            <i class="fa fa-black-tie">
                            </i>
                            职位
                        </a>
                    </li>
                    <li>
                        <a href="https://segmentfault.com/t/php/info">
                            <i class="fa fa-wikipedia-w">
                            </i>
                            百科
                        </a>
                    </li>
                </ul>
                <div class="tab-content">
                    <div id="qa" class="stream-list question-stream">
                        <div class="text-muted mb10 hidden-xs">
                            排序：
                            <div class="btn-group btn-group-xs">
                                <a class="btn btn-default active" href="https://segmentfault.com/t/php?type=newest"
                                role="button">
                                    时间
                                </a>
                                <a class="btn btn-default" href="https://segmentfault.com/t/php?type=votes"
                                role="button">
                                    投票数
                                </a>
                                <a class="btn btn-default" href="https://segmentfault.com/t/php?type=unanswered"
                                role="button">
                                    未回答
                                </a>
                                <a class="btn btn-default" href="https://segmentfault.com/t/php?type=unsolved"
                                role="button">
                                    未解决
                                </a>
                            </div>
                        </div>
                        <?php foreach ($list as $row) { ?>
                            <section class="stream-list__item">
                                <div class="qa-rank">
                                    <div class="votes hidden-xs">
                                        0
                                        <small>
                                            投票
                                        </small>
                                    </div>
                                    <div class="answers <?php if($row['answer_num']!='0'){echo 'answered';} ?>">
                                        <?php echo $row[ 'answer_num'] ?>
                                            <small>
                                                回答
                                            </small>
                                    </div>
                                    <div class="views hidden-xs">
                                        56
                                        <small>
                                            浏览
                                        </small>
                                    </div>
                                </div>
                                <div class="summary">
                                    <ul class="author list-inline">
                                        <li class="pull-right" title="1 收藏">
                                            <small class="glyphicon glyphicon-bookmark">
                                            </small>
                                            1
                                        </li>
                                        <li>
                                            <a href="https://segmentfault.com/u/hjzheng">
                                                <?php echo $row[ 'username'] ?>
                                            </a>
                                            <span class="split">
                                            </span>
                                            <a href="<?php echo U('index/question/index',array('qid'=>$row['id']));?>">
                                                <?php if($row[ 'answer_num']!='0' ){echo CT($row[ 'create_time']). '回答';}else{echo CT($row[ 'create_time']). '提问';} ?>
                                            </a>
                                        </li>
                                    </ul>
                                    <h2 class="title">
                                        <a href="<?php echo U('index/question/index',array('qid'=>$row['id']));?>">
                                            <?php echo $row[ 'title'] ; ?>
                                        </a>
                                    </h2>
                                    <ul class="taglist--inline ib">
                                        <?php foreach ($row[ 'categorys'] as $category) { ?>
                                            <li class="tagPopup">
                                                <a class="tag tag-sm" href="<?php echo U('index/catetory/index',array('cid'=>$category['cid']));?>"
                                                data-toggle="popover" data-original-title="angularjs" data-id="1040000000210853">
                                                    <?php echo $category[ 'cname'] ?>
                                                </a>
                                            </li>
                                            <?php } ?>
                                    </ul>
                                </div>
                            </section>
                            <?php } ?>
                    </div>
                    <div class="text-center LJYpage">
                        <?php echo $show ?>
                    </div>
                    <style type="text/css">
                            .LJYpage a,.LJYpage span{
                                display: inline-block;
                                padding:0px 10px;
                                height: 30px;
                                line-height: 30px;
                                border: 1px solid #006741;
                                margin: 0px 5px;
                            }
                            .LJYpage span.current{
                                background: #006741 url() 0 0 no-repeat;
                                color: #fff;
                            }
                        </style>
                </div>
                <!-- /.tab-content -->
            </div>
            <!-- /.main -->
            <div class="col-xs-12 col-md-3 side">
                <div class="side-ask alert alert-warning">
                    <p>
                        SegmentFault 是一个专注于解决编程问题，提高开发技能的社区。
                    </p>
                    <a href="https://segmentfault.com/user/oauth/google" class="mt10 btn btn-sn-google btn-block">
                        <span class="icon-sn-bg-google">
                        </span>
                        使用 Google 登录
                    </a>
                    <a href="https://segmentfault.com/user/oauth/weibo" class="mt10 btn btn-sn-weibo btn-block">
                        <span class="icon-sn-bg-weibo">
                        </span>
                        使用微博登录
                    </a>
                    <a href="https://segmentfault.com/user/oauth/weixin" class="mt10 btn btn-sn-weixin btn-block">
                        <span class="icon-sn-bg-weixin">
                        </span>
                        使用微信登录
                    </a>
                    <div class="mt10 side-system-notice">
                        <i class="fa fa-bullhorn pull-left">
                        </i>
                        <a class="side-system-notice--title" href="https://segmentfault.com/a/1190000006751300#ops">
                            技术周刊 Vol.3 - 前后端分离与前端工程化
                        </a>
                    </div>
                </div>
                <div class="widget-box">
                    <h2 class="h4 widget-box__title">
                        相关标签
                    </h2>
                    <ul class="taglist--inline multi">
                        <li class="tagPopup">
                            <a class="tag" href="https://segmentfault.com/t/mysql" data-toggle="popover"
                            data-id="1040000000089439" data-original-title="mysql">
                                mysql
                            </a>
                        </li>
                        <li class="tagPopup">
                            <a class="tag" href="https://segmentfault.com/t/javascript" data-toggle="popover"
                            data-id="1040000000089436" data-original-title="javascript">
                                javascript
                            </a>
                        </li>
                        <li class="tagPopup">
                            <a class="tag" href="https://segmentfault.com/t/laravel" data-toggle="popover"
                            data-id="1040000000196640" data-original-title="laravel">
                                laravel
                            </a>
                        </li>
                        <li class="tagPopup">
                            <a class="tag" href="https://segmentfault.com/t/java" data-toggle="popover"
                            data-id="1040000000089449" data-original-title="java">
                                java
                            </a>
                        </li>
                        <li class="tagPopup">
                            <a class="tag" href="https://segmentfault.com/t/thinkphp" data-toggle="popover"
                            data-id="1040000000090482" data-original-title="thinkphp">
                                thinkphp
                            </a>
                        </li>
                        <li class="tagPopup">
                            <a class="tag" href="https://segmentfault.com/t/html" data-toggle="popover"
                            data-id="1040000000089571" data-original-title="html">
                                html
                            </a>
                        </li>
                        <li class="tagPopup">
                            <a class="tag" href="https://segmentfault.com/t/linux" data-toggle="popover"
                            data-id="1040000000089392" data-original-title="linux">
                                linux
                            </a>
                        </li>
                        <li class="tagPopup">
                            <a class="tag" href="https://segmentfault.com/t/nginx" data-toggle="popover"
                            data-id="1040000000090145" data-original-title="nginx">
                                nginx
                            </a>
                        </li>
                        <li class="tagPopup">
                            <a class="tag" href="https://segmentfault.com/t/python" data-toggle="popover"
                            data-id="1040000000089534" data-original-title="python">
                                python
                            </a>
                        </li>
                        <li class="tagPopup">
                            <a class="tag" href="https://segmentfault.com/t/apache" data-toggle="popover"
                            data-id="1040000000089761" data-original-title="apache">
                                apache
                            </a>
                        </li>
                    </ul>
                </div>
                <div class="widget-box widget-taguser">
                    <h2 class="h4 widget-box__title">
                        标签排行榜
                        <span class="taguser-catalog text-muted pull-right">
                            本月 ·
                            <a href="https://segmentfault.com/users">
                                全部
                            </a>
                        </span>
                    </h2>
                    <ol class="widget-top10">
                        <li class="text-muted">
                            <img src="/p201604/seg/seg/Public/images/3659016524-57abf60bc2ed5_small" class="avatar-24">
                            <a href="https://segmentfault.com/u/yangxiangming" class="ellipsis">
                                yangxiangming
                            </a>
                            <span class="text-muted pull-right">
                                +41
                            </span>
                        </li>
                        <li class="text-muted">
                            <img src="/p201604/seg/seg/Public/images/user-32.png" class="avatar-24">
                            <a href="https://segmentfault.com/u/arcus" class="ellipsis">
                                arcus
                            </a>
                            <span class="text-muted pull-right">
                                +41
                            </span>
                        </li>
                        <li class="text-muted">
                            <img src="/p201604/seg/seg/Public/images/3155519825-57700fefeb9d6_small" class="avatar-24">
                            <a href="https://segmentfault.com/u/changwei" class="ellipsis">
                                昌维001
                            </a>
                            <span class="text-muted pull-right">
                                +32
                            </span>
                        </li>
                        <li class="text-muted">
                            <img src="/p201604/seg/seg/Public/images/3971048296-572b35995e21c_small" class="avatar-24">
                            <a href="https://segmentfault.com/u/lincenying" class="ellipsis">
                                林岑影
                            </a>
                            <span class="text-muted pull-right">
                                +30
                            </span>
                        </li>
                        <li class="text-muted">
                            <img src="/p201604/seg/seg/Public/images/2514288082-565dc03a7dda5_small" class="avatar-24">
                            <a href="https://segmentfault.com/u/hongs" class="ellipsis">
                                黄弘
                            </a>
                            <span class="text-muted pull-right">
                                +20
                            </span>
                        </li>
                        <li class="text-muted">
                            <img src="/p201604/seg/seg/Public/images/2903171450-55402ca92f5e9_small" class="avatar-24">
                            <a href="https://segmentfault.com/u/northernfighter" class="ellipsis">
                                北月武士
                            </a>
                            <span class="text-muted pull-right">
                                +18
                            </span>
                        </li>
                        <li class="text-muted">
                            <img src="/p201604/seg/seg/Public/images/552381930-55634a6216d4d_small" class="avatar-24">
                            <a href="https://segmentfault.com/u/em0t" class="ellipsis">
                                em0t
                            </a>
                            <span class="text-muted pull-right">
                                +16
                            </span>
                        </li>
                        <li class="text-muted">
                            <img src="/p201604/seg/seg/Public/images/4226586811-5779f9b767c1c_small" class="avatar-24">
                            <a href="https://segmentfault.com/u/jaxon" class="ellipsis">
                                会编码的熊
                            </a>
                            <span class="text-muted pull-right">
                                +15
                            </span>
                        </li>
                        <li class="text-muted">
                            <img src="/p201604/seg/seg/Public/images/2104533600-56cd905dc3113_small" class="avatar-24">
                            <a href="https://segmentfault.com/u/tigerb" class="ellipsis">
                                TIGERB
                            </a>
                            <span class="text-muted pull-right">
                                +15
                            </span>
                        </li>
                        <li class="text-muted">
                            <img src="/p201604/seg/seg/Public/images/3550004488-5671bf4608304_small" class="avatar-24">
                            <a href="https://segmentfault.com/u/chenwx" class="ellipsis">
                                chenwx
                            </a>
                            <span class="text-muted pull-right">
                                +15
                            </span>
                        </li>
                    </ol>
                </div>
                <div class="widget-box widget-taguser">
                    <h2 class="h4 widget-box__title">
                        标签名人榜
                    </h2>
                    <ol class="widget-top10">
                        <li class="text-muted">
                            <img src="/p201604/seg/seg/Public/images/3247715052-56fce46b2ae70_small" class="avatar-24">
                            <a href="https://segmentfault.com/u/lizheming" class="ellipsis">
                                公子
                            </a>
                            <span class="text-muted pull-right">
                                +9632
                            </span>
                        </li>
                        <li class="text-muted">
                            <img src="/p201604/seg/seg/Public/images/3046988269-5644b84c17ed3_small" class="avatar-24">
                            <a href="https://segmentfault.com/u/youmingdot" class="ellipsis">
                                有明
                            </a>
                            <span class="text-muted pull-right">
                                +8508
                            </span>
                        </li>
                        <li class="text-muted">
                            <img src="/p201604/seg/seg/Public/images/1721318907-5773e949d35a4_small" class="avatar-24">
                            <a href="https://segmentfault.com/u/jellybool" class="ellipsis">
                                JellyBool
                            </a>
                            <span class="text-muted pull-right">
                                +7696
                            </span>
                        </li>
                        <li class="text-muted">
                            <img src="/p201604/seg/seg/Public/images/4271029182-55b7a3c57d25b_small" class="avatar-24">
                            <a href="https://segmentfault.com/u/eechen" class="ellipsis">
                                eechen
                            </a>
                            <span class="text-muted pull-right">
                                +6371
                            </span>
                        </li>
                        <li class="text-muted">
                            <img src="/p201604/seg/seg/Public/images/1578424531-1030000000455562_small" class="avatar-24">
                            <a href="https://segmentfault.com/u/mcfog" class="ellipsis">
                                mcfog
                            </a>
                            <span class="text-muted pull-right">
                                +6076
                            </span>
                        </li>
                        <li class="text-muted">
                            <img src="/p201604/seg/seg/Public/images/2709439599-1030000000321731_small" class="avatar-24">
                            <a href="https://segmentfault.com/u/shamiao" class="ellipsis">
                                沙渺
                            </a>
                            <span class="text-muted pull-right">
                                +5487
                            </span>
                        </li>
                        <li class="text-muted">
                            <img src="/p201604/seg/seg/Public/images/289632912-56dcdd3095831_small" class="avatar-24">
                            <a href="https://segmentfault.com/u/incnick" class="ellipsis">
                                incNick
                            </a>
                            <span class="text-muted pull-right">
                                +5398
                            </span>
                        </li>
                        <li class="text-muted">
                            <img src="/p201604/seg/seg/Public/images/3870447111-5673aedad6338_small" class="avatar-24">
                            <a href="https://segmentfault.com/u/justjavac" class="ellipsis">
                                justjavac
                            </a>
                            <span class="text-muted pull-right">
                                +5322
                            </span>
                        </li>
                        <li class="text-muted">
                            <img src="/p201604/seg/seg/Public/images/1926483299-1030000000139155_small" class="avatar-24">
                            <a href="https://segmentfault.com/u/johnlui" class="ellipsis">
                                JohnLui
                            </a>
                            <span class="text-muted pull-right">
                                +5013
                            </span>
                        </li>
                        <li class="text-muted">
                            <img src="/p201604/seg/seg/Public/images/2618981758-1030000000091293_small" class="avatar-24">
                            <a href="https://segmentfault.com/u/joyqi" class="ellipsis">
                                joyqi
                            </a>
                            <span class="text-muted pull-right">
                                +3983
                            </span>
                        </li>
                    </ol>
                </div>
            </div>
            <!-- /.side -->
        </div>
    </div>
</div>
<div class="container text-right mb20 hidden-xs">
    <a href="https://segmentfault.com/t/php/feeds?type=newest" class="feed-link">
        订阅本页 RSS
    </a>
</div>


        <footer id="footer">
            <div class="container">
                <div class="row hidden-xs">
                    <dl class="col-sm-2 site-link">
                        <dt>
                            网站相关
                        </dt>
                        <dd>
                            <a href="https://segmentfault.com/about">
                                关于我们
                            </a>
                        </dd>
                        <dd>
                            <a href="https://segmentfault.com/tos">
                                服务条款
                            </a>
                        </dd>
                        <dd>
                            <a href="https://segmentfault.com/faq">
                                帮助中心
                            </a>
                        </dd>
                        <dd>
                            <a href="https://segmentfault.com/repu">
                                声望与权限
                            </a>
                        </dd>
                        <dd>
                            <a href="https://segmentfault.com/markdown">
                                编辑器语法
                            </a>
                        </dd>
                        <dd>
                            <a href="https://weekly.segmentfault.com/">
                                每周精选
                            </a>
                        </dd>
                        <dd>
                            <a href="https://segmentfault.com/app">
                                App 下载
                            </a>
                        </dd>
                    </dl>
                    <dl class="col-sm-2 site-link">
                        <dt>
                            联系合作
                        </dt>
                        <dd>
                            <a href="https://segmentfault.com/contact">
                                联系我们
                            </a>
                        </dd>
                        <dd>
                            <a href="https://segmentfault.com/hiring">
                                加入我们
                            </a>
                        </dd>
                        <dd>
                            <a href="https://segmentfault.com/link">
                                合作伙伴
                            </a>
                        </dd>
                        <dd>
                            <a href="https://segmentfault.com/press">
                                媒体报道
                            </a>
                        </dd>
                        <dd>
                            <a href="https://board.segmentfault.com/">
                                建议反馈
                            </a>
                        </dd>
                    </dl>
                    <dl class="col-sm-2 site-link">
                        <dt>
                            常用链接
                        </dt>
                        <dd>
                            <a href="https://chrome.google.com/webstore/detail/segmentfault-%E7%AC%94%E8%AE%B0/pjklfdmleagfaekibdccmhlhellefcfo"
                            target="_blank">
                                笔记插件: Chrome
                            </a>
                        </dd>
                        <dd>
                            <a href="https://addons.mozilla.org/zh-CN/firefox/addon/sf-note-ext/"
                            target="_blank">
                                笔记插件: Firefox
                            </a>
                        </dd>
                        <dd>
                            订阅：
                            <a href="https://segmentfault.com/feeds">
                                问答
                            </a>
                            /
                            <a href="https://segmentfault.com/feeds/blogs">
                                文章
                            </a>
                        </dd>
                        <dd>
                            <a href="https://mirrors.segmentfault.com/" target="_blank">
                                文档镜像
                            </a>
                        </dd>
                        <dd>
                            <a href="https://segmentfault.com/blog/interview" target="_blank">
                                社区访谈
                            </a>
                        </dd>
                        <dd>
                            <a href="https://segmentfault.com/d-day" target="_blank">
                                D-DAY 技术沙龙
                            </a>
                        </dd>
                        <dd>
                            <a href="https://segmentfault.com/hackathon" target="_blank">
                                黑客马拉松 Hackathon
                            </a>
                        </dd>
                        <dd>
                            <a href="https://namebeta.com/" target="_blank">
                                域名搜索注册
                            </a>
                        </dd>
                    </dl>
                    <dl class="col-sm-2 site-link">
                        <dt>
                            关注我们
                        </dt>
                        <dd>
                            <a href="https://github.com/SegmentFault" target="_blank">
                                Github
                            </a>
                        </dd>
                        <dd>
                            <a href="https://twitter.com/segment_fault" target="_blank">
                                Twitter
                            </a>
                        </dd>
                        <dd>
                            <a href="http://weibo.com/segmentfault" target="_blank">
                                新浪微博
                            </a>
                        </dd>
                        <dd>
                            <a href="https://segmentfault.com/blog/segmentfault_team" target="_blank">
                                团队日志
                            </a>
                        </dd>
                        <dd>
                            <a href="https://segmentfault.com/blog/segmentfault" target="_blank">
                                产品技术日志
                            </a>
                        </dd>
                        <dd>
                            <a href="https://segmentfault.com/blog/community_admin" target="_blank">
                                社区运营日志
                            </a>
                        </dd>
                        <dd>
                            <a href="https://segmentfault.com/blog/segmentfault_news" target="_blank">
                                市场运营日志
                            </a>
                        </dd>
                    </dl>
                    <dl class="col-sm-4 site-link" id="license">
                        <dt>
                            内容许可
                        </dt>
                        <dd>
                            除特别说明外，用户内容均采用
                            <a rel="license" target="_blank" href="http://creativecommons.org/licenses/by-sa/3.0/cn/">
                                知识共享署名-相同方式共享 3.0 中国大陆许可协议
                            </a>
                            进行许可
                        </dd>
                        <dd>
                            本站由
                            <a target="_blank" href="https://www.upyun.com/?utm_source=segmentfault&amp;utm_medium=link&amp;utm_campaign=upyun&amp;md=segmentfault">
                                又拍云
                            </a>
                            提供 CDN 存储服务
                        </dd>
                    </dl>
                </div>
                <div class="copyright">
                    Copyright © 2011-2016 SegmentFault. 当前呈现版本 16.08.25
                    <br>
                    <a href="http://www.miibeian.gov.cn/" rel="nofollow">
                        浙ICP备 15005796号-2
                    </a>
                    &nbsp;
                    <a target="_blank" href="http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=33010602002000"
                    rel="nofollow">
                        浙公网安备 33010602002000号
                    </a>
                </div>
                <p class="text-center">
                    <a class="js__view--selector hidden-sm hidden-md hidden-lg" data-action="mobile"
                    href="javascript:;">
                        移动版
                    </a>
                    <a class="js__view--selector hidden-sm hidden-md hidden-lg" data-action="desktop"
                    href="javascript:;">
                        桌面版
                    </a>
                </p>
            </div>
        </footer>
        <div id="fixedTools" class="hidden-xs hidden-sm">
            <a id="backtop" class="border-bottom hidden" href="https://segmentfault.com/#">
                回顶部
            </a>
            <div class="qrcodeWraper">
                <a href="https://segmentfault.com/app#qrcode">
                    <span class="glyphicon glyphicon-qrcode">
                    </span>
                </a>
                <img id="qrcode" class="border" alt="sf-wechat" src="/p201604/seg/seg/Public/images/appQrcode.png">
                <p class="qrcode-text">
                    扫扫下载 App
                </p>
            </div>
        </div>
        <div class="app-promotion-bar">
            <a href="javascript:;">
                <i class="fa fa-close close">
                </i>
            </a>
            <div class="icon">
            </div>
            <h5 class="title h5">
                SegmentFault
            </h5>
            <p class="describe">
                一起探索更多未知
            </p>
            <a class="download-btn btn btn-sm btn-primary" href="https://segmentfault.com/app#qrcode">
                下载 App
            </a>
        </div>

     <script type="text/javascript">
         $(function  (argument) {
             $('.hoverDropdown').hover(function() {
                $(this).children('.dropdown-menu').show();
             }, function() {
                $(this).children('.dropdown-menu').delay('500').hide();
             });
         })
     </script> 
        


    </body>

</html>